package org.emet.entity.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.emet.help.CGResource;
import org.emet.jee.console.entity.BaseEntity;

@Entity
@Table(name = "T_FREEZER_BOX")
public class Freezer extends BaseEntity {

	@CGResource("名称")
	private String name;
	//状态分为三种：预定，使用中，暂停使用，空闲
	@CGResource("状态")
	private String status;
	//组合柜中有多少个格子
	@Column(nullable = false)
	private Integer caseCount;
	@CGResource("备注")
	private String remark;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(unique = true)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getCaseCount() {
		return caseCount;
	}

	public void setCaseCount(Integer caseCount) {
		this.caseCount = caseCount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
